import quickmall.Offer
import quickmall.Store
import quickmall.User



class BootStrap {

    def init = { servletContext ->
		Store s = new Store()
		s.setName("adidas")
		
		s.save()
		
		User user = new User()
		user.setEmail("teste@email.com")
		user.setName("maria")
		user.setPassword("123")
		user.setStore(s)
		
		user.save()
		
		
		Offer o = new Offer()
		o.setStore(s)
		o.setDescription("shoes 50% off")
		
		o.save()
    }
    def destroy = {
    }
}
